new Vue({
  el: '#root',

  data: {
    tab: 0,
    selectedTrId: '',
  },

  methods: {
    onClickTr (id) {
      if (id === this.selectedTrId) {
        this.selectedTrId = ''
      } else {
        this.selectedTrId = id
      }
    }
  },
})